| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/asyncio/__pycache__/ |
Upload File : |
R
>lqj4 c �2 � Q s ] PHs] PHs]QHGs QsQ sP! )z6High-level support for working with threads in asyncio)�eventsc � �� � [ O 2 o[ O 2 o[ O
UO U ,UN3- U@ oUO PU2 E Pi w� K
! K3h)an Asynchronously run function *func* in a separate thread.
Any *args and **kwargs supplied for this function are directly passed
to *func*. Also, the current :class:`contextvars.Context` is propagated,
allowing context variables from the main thread to be accessed in the
separate thread.
Return a coroutine that can be awaited to get the eventual result of
*func*.
)r �get_running_loop�contextvars�copy_context� functools�partial�run�run_in_executor)�func�args�kwargs�loop�ctx� func_calls "*, �$C:\Python315\\Lib\asyncio\threads.py� to_threadr s_ � � � �"�"�$�D�
�
"�
"�
$�C��!�!�#�'�'�4�A�$�A�&�A�I��%�%�d�I�6�6�6�6�6�s �A(A2�*A0�+A2)r )�__doc__r r � r �__all__r � � r �<module>r s �� <� � � � ��7r